<script type="text/javascript">
$(document).ready(function() {
  $('input:visible:enabled:first').focus();
  $('select:visible:enabled:first').focus();
});
//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
function buildsubmenus_horizontal()
{
  for (var i=0; i<menuids.length; i++)
  {
    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++)
    {
  		if(ultags[t].parentNode.parentNode.id==menuids[i])
  		{ //if this is a first level submenu
  			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
  			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		  }
		  else
		  { //else if this is a sub level menu (ul)
  		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
      	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		  }
      ultags[t].parentNode.onmouseover=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="visible"
      }
      ultags[t].parentNode.onmouseout=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="hidden"
      }
    }
  }
}
</script>
{if strlen($s_activId) > 0}
  <script type="text/javascript">
  if (window.addEventListener)
    window.addEventListener("load", buildsubmenus_horizontal, false)
  else if (window.attachEvent)
    window.attachEvent("onload", buildsubmenus_horizontal)
  </script>
  <!--code for blink text -->
  <script type="text/javascript">
  function blink(elId){
    var html = '';
    if(document.all){
      html += 'var bl = document.all.' + elId + ';';
    }
    else if(document.getElementById){
      html += 'var bl = document.getElementById("' + elId + '");';
    }
    html += 'bl.style.visibility = ' + 'bl.style.visibility == "hidden" ? "visible" : "hidden"';
    if(document.all || document.getElementById){
      setInterval(html,400);
    }
  }
  function init(){
    blink('Text');//We do not want text as blinking, so commented
  }
  onload=init;
  </script>
  <!--code for blink text Over -->
{/if}
</head>
{strip}
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    {if strlen($s_activId) > 0}
      <a href="logout.php" class="link">Logout</a> | <a href="index.php" class="link">HOME</a>
      <b> User Name : {$s_activId}  
      &nbsp;&nbsp;&nbsp;
      <span id="Text"><font color="red" size="2">
      {$balanceShow}
      </font></span></b>
      <div style="float:right"><!-- b>Current Year : 2012-13</b> | <a href="http://ibmserver:8080/edsystems/index.php" class="link">Goto 2013-14</a> | --><a href="backup.php" class="link">Back Up</a></div>
    {else}
      <a href="checkLogin.php" class="link">Login</a>
    {/if}
    </td>
  </tr>
  {if strlen($s_activId) > 0}
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
	        <li><a href="#" class="link">Master</a>
	          <ul>
	            <li><a href="branch.php" class="link" align="left">Branch</a></li>	            
	            <li><a href="party.php" class="link" align="left">Customer</a></li>
	            <li><a href="employee.php" class="link"align="left">Employee / User</a></li>
	            <li><a href="item.php" class="link" align="left">Product</a></li>
	            {if $s_userType != 'marketingManager' && $s_userType != 'marketingExecutive'}
	              <li><a href="supplier.php" class="link"align="left">Supplier</a></li>
	            {/if}
	            <li><a href="typeOfCall.php" class="link" align="left">Type of call</a></li>
              <li><a href="timeSlot.php" class="link" align="left">Time Slot</a></li>
              <li><a href="changePassword.php" class="link" align="left">Change Password</a>
	          </ul>
	        </li>
	        <li><a href="#" class="link" align="left">Daily Report</a>
	         <ul id="treemenu1">
	           <li><a href="dailyReport.php" class="link" align="left">Create</a></li>
	           <li><a href="dailyReportList.php" class="link" align="left">List</a></li>
	         </ul>
	       </li> 
	        <li><a href="#" class="link" align="left">Service Registration</a>
            <ul id="treemenu1">
	            <li><a href="complainService.php" class="link" align="left">Complaint Entry</a></li>
    	        <li><a href="newInstallation.php" class="link" align="left">New Installation</a></li>
    	        <li><a href="demo.php" class="link" align="left">Demo</a></li>  
	            <li><a href="rAndD.php" class="link" align="left">R & D</a></li>  
	            <li><a href="others.php" class="link" align="left">Others</a></li>
	            <li><a href="rAndR.php" class="link" align="left">R & R</a></li>  
	            <li><a href="serviceRegisList.php" class="link" align="left">Service Report List</a></li>
            </ul>
	        </li>
	        <li><a href="#" class="link" align="left">Service Status Report</a>
            <ul id="treemenu1">
    	        <li><a href="serviceList.php" class="link" align="left"> Pending Service Process</a></li>
    	        <!--<li><a href="techAllocation.php" class="link" align="left">Tech. Allocation</a></li>
    	        <li><a href="pendingReport.php" class="link" align="left">Service Status Update</a></li>-->
    	        <li><a href="completeReport.php" class="link" align="left">Complete Service Report</a></li>
    	        <li><a href="pendingRandRList.php" class="link" align="left">Pending RnR Report</a></li>
    	        <li><a href="completeRandRList.php" class="link" align="left">Complete RnR Report</a></li>
            </ul>
	        </li>
	        <li><a href="#" class="link" align="left">Goods Movement Record</a>
	        	<ul id="treemenu1">
	        	{if $s_userType != 'marketingManager' && $s_userType != 'marketingExecutive'}
              <li><a href="deliveryChalan.php?challanShort=DCN" class="link" align="left" style="font-size:10px">Delivery Challan/Note</a></li>
              <li><a href="deliveryChalan.php?challanShort=GIN" class="link" align="left" style="font-size:10px">Goods Inward Note</a></li>
              <li><a href="grn.php" class="link" align="left" style="font-size:10px">Goods Return Note</a></li><!--deliveryChalan.php?challanShort=GRN-->
              <li><a href="deliveryChalan.php?challanShort=GRJ" class="link" align="left" style="font-size:10px">Goods Rejection</a></li>
              <li><a href="deliveryChalanList.php" class="link" align="left" style="font-size:10px">Goods Movement Records</a></li>
	          {/if}
	           <li><a href="masterDelivery.php" class="link" align="left" style="font-size:10px">Create Final Master</a></li>
	          </ul>
	        </li>
	        <li><a href="userTarget.php" class="link" align="left">User Target</a></li>
	        <li><a href="#" class="link" align="left">SMS</a>
	          <ul id="treemenu1">
	           <li><a href="sendSMS.php" class="link" align="left">Send SMS</a></li>
	           <li><a href="sendSMSList.php" class="link" align="left">SMS List</a></li>
	          </ul>
	        </li>
	        
	        <li><a href="#" class="link" align="left">M I S</a>
	        	<ul id="treemenu1">
	           <li><a href="productList.php" class="link" align="left">Stock Report</a></li>
	           <li><a href="siteReg.php" class="link" align="left">Site Register</a></li>
	           <li><a href="productRegister.php" class="link" align="left">Safety Stock Levels</a></li>
	           <li><a href="userTargetReport.php" class="link" align="left">User Target Report</a></li>
	           <li><a href="rAndRList.php" class="link" align="left">R And R List</a></li>
	           <li><a href="masterDeliveryList.php" class="link" align="left" style="font-size:10px">Final Master Created</a></li>
             <li><a href="masterDeliveryPendingList.php" class="link" align="left" style="font-size:10px">Final Master Pending</a></li>
	           <li><a href="proformaList.php" class="link" align="left">Pending Proforma</a></li>
	           <li><a href="proformaListComplete.php" class="link" align="left">Complete Proforma</a></li>
	          </ul>
	        </li>
	      <br /><br /><br />
      </div>
    </td>
  </tr>
  {/if}
<td class="content">
<br /><br />
{/strip}